package com.medical_houduan.pojo;

import lombok.Data;

import java.util.Date;

//用户实体类


//lombok工具：@Data注解:在编译阶段，为实体类自动生成setter、getter、toString等，需在pom中引入坐标，然后在实体类上使用@Data注解
@Data
public class User {
    // id 字段，自增
    private Long id;
    // 真实姓名
    private String realname;
    // 用户名
    private String uname;
    // 密码
    private String pwd;
    // 电话号码
    private String phonenumber;
    // 用户类型
    private String utype;//ROLE_1管理员、ROLE_2医生、ROLE_3患者
    // 更新时间
    private Date updatetime;
    // 创建时间
    private Date createtime;

    /*// Getter 和 Setter 方法
    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getRealname() {
        return realname;
    }

    public void setRealname(String realname) {
        this.realname = realname;
    }

    public String getUname() {
        return uname;
    }

    public void setUname(String uname) {
        this.uname = uname;
    }

    public String getPwd() {
        return pwd;
    }

    public void setPwd(String pwd) {
        this.pwd = pwd;
    }

    public String getPhonenumber() {
        return phonenumber;
    }

    public void setPhonenumber(String phonenumber) {
        this.phonenumber = phonenumber;
    }

    public String getUtype() {
        return utype;
    }

    public void setUtype(String utype) {
        this.utype = utype;
    }

    public Date getUpdatetime() {
        return updatetime;
    }

    public void setUpdatetime(Date updatetime) {
        this.updatetime = updatetime;
    }

    public Date getCreatetime() {
        return createtime;
    }

    public void setCreatetime(Date createtime) {
        this.createtime = createtime;
    }

    @Override
    public String toString() {
        return "User{" +
                "id=" + id +
                ", realname='" + realname + '\'' +
                ", uname='" + uname + '\'' +
                ", pwd='" + pwd + '\'' +
                ", phonenumber='" + phonenumber + '\'' +
                ", utype='" + utype + '\'' +
                ", updatetime=" + updatetime +
                ", createtime=" + createtime +
                '}';
    }*/
}
